local zhigao = fk.CreateSkill{
    name = "st__zhigao",
    tags = { Skill.Compulsory },
}
zhigao:addEffect(fk.DrawNCards, {
  anim_type = "drawcard",
  on_use = function(self, event, target, player, data)
    data.n = data.n + 1
  end,
})

zhigao:addEffect("maxcards", {
  fixed_func = function(self, player)
    if player:hasSkill(self.name) then
      return player.maxHp
    end
  end
})
zhigao:addEffect("atkrange", {
  correct_func = function(self, from, to)
    if from:hasSkill(self.name) then
      return 2
    end
  end,
})

zhigao:addEffect("targetmod", {
  bypass_times = function(self, player, skill, scope, card)
    if player:hasSkill(self.name) and card and skill.trueName == "slash_skill" and scope == Player.HistoryPhase
    and player:usedCardTimes("slash", Player.HistoryPhase) <= 1  then
      return true
    end
  end,
})
Fk:loadTranslationTable{
    ["st__zhigao"]="至高",
    [":st__zhigao"]="锁定技，你的攻击范围+2，摸牌阶段多模一张牌，出牌阶段可以多使用一张杀，手牌上限视为体力上限",
}

return zhigao
